import java.util.Scanner;
public class Second{
	public static void main(String[] args){
	Scanner sc =new Scanner(System.in);
	System.out.println("Please enter the username:");
	String a =sc.next();
	System.out.println("Please enter the password:");
	String b =sc.next();
	System.out.println("Enter your password again:");
	String c =sc.next();
	if (b.equals(c)){
	System.out.println("Congratulations on your successful registration!");
	}else{
	System.out.println("Sorry,the password is inconsistent,please re-enter it!");
	}
	}
}